package cn.soft.zhaopin.base.pojo.po;

import java.util.ArrayList;
import java.util.List;

public class JobExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public JobExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andJobIdIsNull() {
            addCriterion("job_id is null");
            return (Criteria) this;
        }

        public Criteria andJobIdIsNotNull() {
            addCriterion("job_id is not null");
            return (Criteria) this;
        }

        public Criteria andJobIdEqualTo(Integer value) {
            addCriterion("job_id =", value, "jobId");
            return (Criteria) this;
        }

        public Criteria andJobIdNotEqualTo(Integer value) {
            addCriterion("job_id <>", value, "jobId");
            return (Criteria) this;
        }

        public Criteria andJobIdGreaterThan(Integer value) {
            addCriterion("job_id >", value, "jobId");
            return (Criteria) this;
        }

        public Criteria andJobIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("job_id >=", value, "jobId");
            return (Criteria) this;
        }

        public Criteria andJobIdLessThan(Integer value) {
            addCriterion("job_id <", value, "jobId");
            return (Criteria) this;
        }

        public Criteria andJobIdLessThanOrEqualTo(Integer value) {
            addCriterion("job_id <=", value, "jobId");
            return (Criteria) this;
        }

        public Criteria andJobIdIn(List<Integer> values) {
            addCriterion("job_id in", values, "jobId");
            return (Criteria) this;
        }

        public Criteria andJobIdNotIn(List<Integer> values) {
            addCriterion("job_id not in", values, "jobId");
            return (Criteria) this;
        }

        public Criteria andJobIdBetween(Integer value1, Integer value2) {
            addCriterion("job_id between", value1, value2, "jobId");
            return (Criteria) this;
        }

        public Criteria andJobIdNotBetween(Integer value1, Integer value2) {
            addCriterion("job_id not between", value1, value2, "jobId");
            return (Criteria) this;
        }

        public Criteria andJobNameIsNull() {
            addCriterion("job_name is null");
            return (Criteria) this;
        }

        public Criteria andJobNameIsNotNull() {
            addCriterion("job_name is not null");
            return (Criteria) this;
        }

        public Criteria andJobNameEqualTo(String value) {
            addCriterion("job_name =", value, "jobName");
            return (Criteria) this;
        }

        public Criteria andJobNameNotEqualTo(String value) {
            addCriterion("job_name <>", value, "jobName");
            return (Criteria) this;
        }

        public Criteria andJobNameGreaterThan(String value) {
            addCriterion("job_name >", value, "jobName");
            return (Criteria) this;
        }

        public Criteria andJobNameGreaterThanOrEqualTo(String value) {
            addCriterion("job_name >=", value, "jobName");
            return (Criteria) this;
        }

        public Criteria andJobNameLessThan(String value) {
            addCriterion("job_name <", value, "jobName");
            return (Criteria) this;
        }

        public Criteria andJobNameLessThanOrEqualTo(String value) {
            addCriterion("job_name <=", value, "jobName");
            return (Criteria) this;
        }

        public Criteria andJobNameLike(String value) {
            addCriterion("job_name like", value, "jobName");
            return (Criteria) this;
        }

        public Criteria andJobNameNotLike(String value) {
            addCriterion("job_name not like", value, "jobName");
            return (Criteria) this;
        }

        public Criteria andJobNameIn(List<String> values) {
            addCriterion("job_name in", values, "jobName");
            return (Criteria) this;
        }

        public Criteria andJobNameNotIn(List<String> values) {
            addCriterion("job_name not in", values, "jobName");
            return (Criteria) this;
        }

        public Criteria andJobNameBetween(String value1, String value2) {
            addCriterion("job_name between", value1, value2, "jobName");
            return (Criteria) this;
        }

        public Criteria andJobNameNotBetween(String value1, String value2) {
            addCriterion("job_name not between", value1, value2, "jobName");
            return (Criteria) this;
        }

        public Criteria andJobNicknameIsNull() {
            addCriterion("job_nickName is null");
            return (Criteria) this;
        }

        public Criteria andJobNicknameIsNotNull() {
            addCriterion("job_nickName is not null");
            return (Criteria) this;
        }

        public Criteria andJobNicknameEqualTo(String value) {
            addCriterion("job_nickName =", value, "jobNickname");
            return (Criteria) this;
        }

        public Criteria andJobNicknameNotEqualTo(String value) {
            addCriterion("job_nickName <>", value, "jobNickname");
            return (Criteria) this;
        }

        public Criteria andJobNicknameGreaterThan(String value) {
            addCriterion("job_nickName >", value, "jobNickname");
            return (Criteria) this;
        }

        public Criteria andJobNicknameGreaterThanOrEqualTo(String value) {
            addCriterion("job_nickName >=", value, "jobNickname");
            return (Criteria) this;
        }

        public Criteria andJobNicknameLessThan(String value) {
            addCriterion("job_nickName <", value, "jobNickname");
            return (Criteria) this;
        }

        public Criteria andJobNicknameLessThanOrEqualTo(String value) {
            addCriterion("job_nickName <=", value, "jobNickname");
            return (Criteria) this;
        }

        public Criteria andJobNicknameLike(String value) {
            addCriterion("job_nickName like", value, "jobNickname");
            return (Criteria) this;
        }

        public Criteria andJobNicknameNotLike(String value) {
            addCriterion("job_nickName not like", value, "jobNickname");
            return (Criteria) this;
        }

        public Criteria andJobNicknameIn(List<String> values) {
            addCriterion("job_nickName in", values, "jobNickname");
            return (Criteria) this;
        }

        public Criteria andJobNicknameNotIn(List<String> values) {
            addCriterion("job_nickName not in", values, "jobNickname");
            return (Criteria) this;
        }

        public Criteria andJobNicknameBetween(String value1, String value2) {
            addCriterion("job_nickName between", value1, value2, "jobNickname");
            return (Criteria) this;
        }

        public Criteria andJobNicknameNotBetween(String value1, String value2) {
            addCriterion("job_nickName not between", value1, value2, "jobNickname");
            return (Criteria) this;
        }

        public Criteria andJobGroupIdIsNull() {
            addCriterion("job_group_id is null");
            return (Criteria) this;
        }

        public Criteria andJobGroupIdIsNotNull() {
            addCriterion("job_group_id is not null");
            return (Criteria) this;
        }

        public Criteria andJobGroupIdEqualTo(Integer value) {
            addCriterion("job_group_id =", value, "jobGroupId");
            return (Criteria) this;
        }

        public Criteria andJobGroupIdNotEqualTo(Integer value) {
            addCriterion("job_group_id <>", value, "jobGroupId");
            return (Criteria) this;
        }

        public Criteria andJobGroupIdGreaterThan(Integer value) {
            addCriterion("job_group_id >", value, "jobGroupId");
            return (Criteria) this;
        }

        public Criteria andJobGroupIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("job_group_id >=", value, "jobGroupId");
            return (Criteria) this;
        }

        public Criteria andJobGroupIdLessThan(Integer value) {
            addCriterion("job_group_id <", value, "jobGroupId");
            return (Criteria) this;
        }

        public Criteria andJobGroupIdLessThanOrEqualTo(Integer value) {
            addCriterion("job_group_id <=", value, "jobGroupId");
            return (Criteria) this;
        }

        public Criteria andJobGroupIdIn(List<Integer> values) {
            addCriterion("job_group_id in", values, "jobGroupId");
            return (Criteria) this;
        }

        public Criteria andJobGroupIdNotIn(List<Integer> values) {
            addCriterion("job_group_id not in", values, "jobGroupId");
            return (Criteria) this;
        }

        public Criteria andJobGroupIdBetween(Integer value1, Integer value2) {
            addCriterion("job_group_id between", value1, value2, "jobGroupId");
            return (Criteria) this;
        }

        public Criteria andJobGroupIdNotBetween(Integer value1, Integer value2) {
            addCriterion("job_group_id not between", value1, value2, "jobGroupId");
            return (Criteria) this;
        }

        public Criteria andJobLevelIsNull() {
            addCriterion("job_level is null");
            return (Criteria) this;
        }

        public Criteria andJobLevelIsNotNull() {
            addCriterion("job_level is not null");
            return (Criteria) this;
        }

        public Criteria andJobLevelEqualTo(Integer value) {
            addCriterion("job_level =", value, "jobLevel");
            return (Criteria) this;
        }

        public Criteria andJobLevelNotEqualTo(Integer value) {
            addCriterion("job_level <>", value, "jobLevel");
            return (Criteria) this;
        }

        public Criteria andJobLevelGreaterThan(Integer value) {
            addCriterion("job_level >", value, "jobLevel");
            return (Criteria) this;
        }

        public Criteria andJobLevelGreaterThanOrEqualTo(Integer value) {
            addCriterion("job_level >=", value, "jobLevel");
            return (Criteria) this;
        }

        public Criteria andJobLevelLessThan(Integer value) {
            addCriterion("job_level <", value, "jobLevel");
            return (Criteria) this;
        }

        public Criteria andJobLevelLessThanOrEqualTo(Integer value) {
            addCriterion("job_level <=", value, "jobLevel");
            return (Criteria) this;
        }

        public Criteria andJobLevelIn(List<Integer> values) {
            addCriterion("job_level in", values, "jobLevel");
            return (Criteria) this;
        }

        public Criteria andJobLevelNotIn(List<Integer> values) {
            addCriterion("job_level not in", values, "jobLevel");
            return (Criteria) this;
        }

        public Criteria andJobLevelBetween(Integer value1, Integer value2) {
            addCriterion("job_level between", value1, value2, "jobLevel");
            return (Criteria) this;
        }

        public Criteria andJobLevelNotBetween(Integer value1, Integer value2) {
            addCriterion("job_level not between", value1, value2, "jobLevel");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}